<?php
class Contact extends AppModel
{
    public $name = "Contact";
    public $validate = array(
        'name' => array(
            'notempty' => array(
                'rule' => array('notempty'),
                'message' => 'Name must be between 3 and 32 characters!',
                'allowEmpty' => false
            )
        ),
        'email' => array(
            'notempty' => array(
                'rule' => array('notempty'),
                'message' => 'E-Mail Address does not appear to be valid!',
                'allowEmpty' => false
            ),
            'email' => array(
                'rule' => 'email',
                'message' => 'E-Mail Address does not appear to be valid!'
            )
        ),
        'content' => array(
            'notempty' => array(
                'rule' => array('notempty'),
                'message' => 'Enquiry must be between 10 and 3000 characters!',
                'allowEmpty' => false
            )
        )
    );
}
?>